package main

import (
	"time"
	"fmt"
)

func main() {
	// 2秒之后系统会自动向time.C channel内添加时间(不会阻塞)
	timer := time.NewTimer(time.Second * 2)

	fmt.Println(timer)
	t := <-timer.C
	fmt.Println(t)

}
